#include "morse.h"

#include "WProgram.h"

Morse::Morse(int pin) {
  this->m_pin = pin;
  pinMode(this->m_pin, OUTPUT);
}

void Morse::dot()
{
  digitalWrite(this->m_pin, HIGH);
  delay(250);
  digitalWrite(this->m_pin, LOW);
  delay(250);  
}

void Morse::dash()
{
  digitalWrite(this->m_pin, HIGH);
  delay(1000);
  digitalWrite(this->m_pin, LOW);
  delay(250);
}
